package com.softtown.modules.dapai.service;


import com.github.pagehelper.PageInfo;
import com.softtown.common.service.BaseService;
import com.softtown.modules.dapai.dto.CompServiceOrderAPPDTO;
import com.softtown.modules.dapai.dto.CompServiceOrderAddDTO;
import com.softtown.modules.dapai.dto.CompServiceOrderDTO;
import com.softtown.modules.dapai.entity.CompServiceOrderEntity;


/**
* @Author: Ding Ya Yong
* @Description: 维修服务单
* @date: 2022/1/2 11:40
* @Param:
* @return:
*/
public interface CompServiceOrderService extends BaseService<CompServiceOrderEntity> {

    PageInfo<CompServiceOrderDTO> getServiceOrderPageList(CompServiceOrderDTO compServiceOrderDTO);

    CompServiceOrderAddDTO getServiceOrderById(Long compId, Long id);

    PageInfo<CompServiceOrderAPPDTO> getServiceOrderPageListAPP(CompServiceOrderAPPDTO compServiceOrderAPPDTO);

    CompServiceOrderAPPDTO getServiceOrderByIdAPP(Long compId, Long id);

    void submitServiceOrderAPP(CompServiceOrderAPPDTO compServiceOrderAPPDTO);

    void addServiceOrder(CompServiceOrderAddDTO CompServiceOrderAddDTO);

    void updateServiceOrder(CompServiceOrderAddDTO CompServiceOrderAddDTO);

    void deleteServiceOrder(CompServiceOrderDTO compServiceOrderDTO);

}
